package minidb.parse.exps;
import java.util.*;

public class ValueList
{
	public List<Operand> valueList;

	public ValueList()
	{
		this.valueList = new ArrayList<Operand>();
	}

	public ValueList AddValue(Operand o)
	{
		this.valueList.add(o);
		return this;
	}

	public List<Operand> GetValueList()
	{
		return this.valueList;
	}
	
	public String Print()
	{
		StringBuilder sb=new StringBuilder("");
		
		for(int i=0;i<this.valueList.size();i++)
		{
			Operand o=this.valueList.get(i);
			sb.append(o.Print());
			if(i!=this.valueList.size()-1)
				sb.append(",");
		}
		
		return sb.toString();
	}
}
